import Vue from 'vue'
import Router from 'vue-router'
import userlist from '../views/usermanager/userlist.vue'
import login from '../views/login/login.vue'
import mainenu from '../views/main/mainmenu.vue'
Vue.use(Router)

export default new Router({
  routes: [
  
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/login',
      name: 'login',
      component: login
    }, 
    // {
    //   path: '/userlist',
    //   name: 'userlist',
    //   component: userlist
    // }, 
    {
      path: '/mainenu',
      name: 'mainenu',
      component: mainenu,
      children: [
        {
         
          path: '',
          name: 'userlist',
          component: userlist
        },
        {
         
          path: 'userlist',
          name: 'userlist',
          component: userlist
        },
      ]
    }
  ]
})
